* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f6f8ff 0%, #e9ecff 100%);
    color: #1f2937;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 768px;
    margin: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #4f46e5, #ec4899, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 6s ease infinite;
    padding-bottom: 1rem;
    text-shadow: none;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    border-radius: 2px;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0% {
        width: 60px;
        opacity: 1;
    }
    50% {
        width: 100px;
        opacity: 0.6;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.form-card, .suggestions-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover, .suggestions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    transition: color 0.3s ease;
}

select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: white;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.suggestions-card {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    position: relative;
    padding-left: 1rem;
}

.suggestions-card h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #4f46e5, #6366f1);
    border-radius: 2px;
}

.suggestion-item {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4f46e5, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suggestion-item:hover {
    background-color: #f8fafc;
    border-color: #6366f1;
    transform: translateX(5px);
}

.suggestion-item:hover::before {
    opacity: 1;
}

.suggestion-name {
    font-family: 'Fira Code', monospace;
    font-size: 1.25rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.suggestion-explanation {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.hidden {
    display: none;
}

/* 添加复制反馈动画 */
@keyframes copyFeedback {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.copy-feedback {
    animation: copyFeedback 0.3s ease;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .container {
        margin: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .form-card, .suggestions-card {
        padding: 1.5rem;
    }
} 

/* 在现有样式的基础上添加以下内容 */

.name-styles-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.name-style-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    max-width: 100%;
    overflow: hidden;
}

.name-style-item:hover {
    background: #f1f5f9;
}

.style-label {
    font-size: 0.875rem;
    color: #64748b;
    min-width: 180px;
    position: relative;
    padding-left: 12px;
}

.style-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

.name-style-item:nth-child(1) .style-label::before {
    background: #4f46e5;
}

.name-style-item:nth-child(2) .style-label::before {
    background: #ec4899;
}

.name-style-item:nth-child(3) .style-label::before {
    background: #3b82f6;
}

.name-style-item:nth-child(4) .style-label::before {
    background: #8b5cf6;
}

.name-style-item:nth-child(5) .style-label::before {
    background: #06b6d4;
}

.style-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #4f46e5;
    padding: 0.25rem 0.5rem;
    background: #eef2ff;
    border-radius: 0.25rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    color: #4f46e5;
    background: #eef2ff;
}

.copy-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.copy-btn:active::after {
    transform: translate(-50%, -50%) scale(2);
}

.copy-icon, .check-icon {
    display: block;
}

.suggestion-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

@keyframes copyFeedback {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-4px);
    }
    100% {
        transform: translateX(0);
    }
}

.copy-feedback {
    animation: copyFeedback 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .name-style-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .style-label {
        min-width: auto;
    }
} 

/* 添加建议项出现动画 */
.suggestion-item {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.suggestion-item:nth-child(1) { animation-delay: 0.1s; }
.suggestion-item:nth-child(2) { animation-delay: 0.2s; }
.suggestion-item:nth-child(3) { animation-delay: 0.3s; }

/* 添加脉冲动画到复制图标 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.copy-btn:hover .copy-icon {
    animation: pulse 1s ease infinite;
}

.style-value code:hover {
    max-width: none;
    position: relative;
    z-index: 1;
    background: #eef2ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} 

/* 动态背景 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(125deg, #fff6f6 0%, #f0f7ff 100%);
}

.cube {
    position: absolute;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    animation: float 20s infinite;
    border-radius: 10px;
}

.cube:nth-child(1) {
    width: 160px;
    height: 160px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.cube:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 65%;
    left: 75%;
    animation-delay: -4s;
}

.cube:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 45%;
    animation-delay: -8s;
}

.cube:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 75%;
    left: 25%;
    animation-delay: -12s;
}

.cube:nth-child(5) {
    width: 140px;
    height: 140px;
    top: 25%;
    left: 80%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-100px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(-50px) rotate(180deg) scale(0.8);
    }
    75% {
        transform: translateY(-150px) rotate(270deg) scale(1.1);
    }
}

/* 删除原来的 author-card 相关样式，添加悬浮打赏按钮样式 */
.floating-donate {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
}

.floating-donate-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.floating-donate-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.rotate-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.donate-icon {
    margin-bottom: 2px;
}

.donate-text {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    white-space: nowrap;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.floating-donate-btn:hover .donate-text {
    opacity: 1;
}

/* 添加悬浮效果 */
.floating-donate-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-donate {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .floating-donate-btn {
        width: 50px;
        height: 50px;
    }

    .donate-text {
        display: none;
    }
}

/* 修改悬浮打赏按钮和弹窗的样式 */
.floating-donate {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
}

.floating-donate-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

/* 修改弹窗样式 */
.modal {
    position: fixed; /* 改为 fixed 定位 */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 100;
}

.modal.active {
    display: block;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 2rem;
    width: 320px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform-origin: right center;
    transition: all 0.3s ease;
}

/* 控制内容的显示和隐藏 */
.modal-inner-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 2rem;
}

.modal-content:not(.circle) .modal-inner-content {
    opacity: 1;
    visibility: visible;
    position: relative;
    transition-delay: 0.2s;
}

.donate-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.2s ease;
}

.modal-content.circle .donate-icon-wrapper {
    opacity: 1;
    visibility: visible;
}

.modal-content.circle {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 优化动画关键帧 */
@keyframes expandFromCircle {
    0% {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
    }
    50% {
        width: 320px;
        height: 60px;
        border-radius: 30px;
        padding: 0;
    }
    100% {
        width: 320px;
        height: 400px; /* 设置一个固定高度 */
        border-radius: 20px;
        padding: 2rem;
    }
}

@keyframes shrinkToCircle {
    0% {
        width: 320px;
        height: 400px;
        border-radius: 20px;
        padding: 2rem;
    }
    50% {
        width: 320px;
        height: 60px;
        border-radius: 30px;
        padding: 0;
    }
    100% {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
    }
}

/* 二维码容器样式 */
.qr-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.qr-item {
    text-align: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* 动画关键帧 */
@keyframes expandModal {
    from {
        clip-path: circle(0% at right center);
    }
    to {
        clip-path: circle(150% at right center);
    }
}

@keyframes showContent {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes closeModal {
    from {
        clip-path: circle(150% at right center);
    }
    to {
        clip-path: circle(0% at right center);
    }
}

@keyframes hideContent {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
} 

/* 修改关闭按钮样式 */
.close-modal {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: #6366f1;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.close-modal:hover::before,
.close-modal:hover::after {
    background: #4f46e5;
}

/* 添加按钮按下效果 */
.close-modal:active {
    transform: rotate(90deg) scale(0.95);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

/* 确保关闭按钮在圆形状态下不可见时的平滑过渡 */
.modal-content.circle .close-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-content:not(.circle) .close-modal {
    opacity: 1;
    visibility: visible;
    transition: all 0.2s ease 0.3s;
} 

/* 修改圆形按钮的旋转动画 */
.modal-content.circle {
    position: relative;
}

.modal-content.circle .donate-icon-wrapper {
    animation: rotateButton 6s linear infinite;
}

/* 添加悬停提示 */
.modal-content.circle::after {
    content: '打赏作者';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-content.circle:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 添加提示框的小箭头 */
.modal-content.circle::before {
    content: '';
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid rgba(0, 0, 0, 0.8);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-content.circle:hover::before {
    opacity: 1;
    visibility: visible;
}

@keyframes rotateButton {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 增加背景动画幅度 */
.cube {
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-100px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(-50px) rotate(180deg) scale(0.8);
    }
    75% {
        transform: translateY(-150px) rotate(270deg) scale(1.1);
    }
}

/* 调整背景方块大小和初始位置 */
.cube:nth-child(1) {
    width: 160px;
    height: 160px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.cube:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 65%;
    left: 75%;
    animation-delay: -4s;
}

.cube:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 45%;
    animation-delay: -8s;
}

.cube:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 75%;
    left: 25%;
    animation-delay: -12s;
}

.cube:nth-child(5) {
    width: 140px;
    height: 140px;
    top: 25%;
    left: 80%;
    animation-delay: -16s;
}
 